<template>
  <view class="body">
    <view class="box">
      <web-view :src="src"></web-view>
    </view>
  </view>
</template>
<script>
export default {
  onLoad(e) {
    if (e) {
      if (e.subject) {
        this.src = e.src + "?subject=" + e.subject;
      } else {
        this.src = e.src;
      }
    }
  },
  data() {
    return {
      src: "",
      webviewStyles: {
        progress: {
          color: "#FF3333",
        },
      },
    };
  },
  methods: {
    goback() {
      uni.reLaunch({
        url: `../index`,
      });
    },
  },
};
</script>